package com.qf.data.view.core.service.impl;

import com.qf.data.core.dal.dao.device.DeviceMapper;
import com.qf.data.core.dal.po.device.DevicePO;
import com.qf.data.view.core.service.device.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author q
 * @version V1.0
 * @date 2022/01/04
 **/
@Service
public class DeviceServiceImpl implements DeviceService {

    @Autowired
    private DeviceMapper deviceMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return deviceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(DevicePO record) {
        return deviceMapper.insert(record);
    }

    @Override
    public int insertSelective(DevicePO record) {
        return deviceMapper.insertSelective(record);
    }

    @Override
    public DevicePO selectByPrimaryKey(Long id) {
        return deviceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DevicePO record) {
        return deviceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DevicePO record) {
        return deviceMapper.updateByPrimaryKey(record);
    }

    @Override
    public DevicePO selectByDeviceKey(String deviceKey) {
        return deviceMapper.selectByDeviceKey(deviceKey);
    }
}
